package com.property.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 业务-投票
 * </p>
 *
 * @author 刘煦煌
 * @since 2023-11-24
 */
@Getter
@Setter
@TableName("biz_vote")
@ApiModel(value = "Vote对象", description = "业务-投票")
public class Vote implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    private String name;

    @ApiModelProperty("封面")
    private String cover;

    @ApiModelProperty("选择方式 （1单选 2多选）")
    private Integer selectMode;

    @ApiModelProperty("投票选项（json格式）")
    private String items;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("截止时间")
    private LocalDateTime endTime;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;


}
